﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MyPSDALayer
{
    [MetadataType(typeof(SetBDMetaData))]
    public partial class SiteDB
    {
        private class SetBDMetaData
        {
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "网站简介")]
            public string SiteIntro { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "工作时间")]
            public string WorkTime { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "服务电话")]
            public string Phone { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "服务QQ")]
            public string QQ { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "电子信箱")]
            public string Email { get; set; }
            [Required(ErrorMessage = "不能为空")]
            [Display(Name = "是否启用")]
            public string IS_Current { get; set; }
            [Display(Name = "备用栏位1")]
            public string Field_1 { get; set; }
            [Display(Name = "备用栏位2")]
            public string Field_2 { get; set; }
            [Display(Name = "备用栏位3")]
            public string Field_3 { get; set; }
            [Display(Name = "备用栏位4")]
            public string Field_4 { get; set; }
            [Display(Name = "备用栏位5")]
            public string Field_5 { get; set; }
            [Display(Name = "备用栏位6")]
            public string Field_6 { get; set; }
        }
    }
}
